#![allow(dead_code)]
enum Status {
    Rich,
    Poor,
}

enum Work {
    Civilian,
    Soldier,
}

pub fn example() {
    use Status::{Poor,Rich};

    let status = Poor;

    use Work::*;
    let work = Civilian;

    match status {
        Rich => println!("The rich have lots of money!"),
        Poor => println!("The poor have no money")
    }

    match work {
        Civilian => println!("Civilians work!"),
        Soldier => println!("Soldiers fight!")
    }
}